package com.atom.module.lib.opengles.exception

/**
 * All rights Reserved, Designed By www.rongdasoft.com
 * @version V1.0
 * @Title: ShaderException
 * @Description:
 * @author: wuyongzheng
 * @date: 2022/1/18
 * @Copyright: 2022/1/18 www.rongdasoft.com Inc. All rights reserved.
 */
class ShaderException : Throwable {
    val value: String

    constructor(className: String?, funcName: String?, message: String?)
            : this(String.format("%s : %s : %s", className, funcName, message))

    constructor(value: String) {
        this.value = value
    }

    constructor(message: String?, value: String) : super(message) {
        this.value = value
    }

    constructor(message: String?, cause: Throwable?, value: String) : super(message, cause) {
        this.value = value
    }

    constructor(cause: Throwable?, value: String) : super(cause) {
        this.value = value
    }

    companion object {
        val EMPTY = Exception("")
    }
}